package cn.lili.modules.promotion.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xiangqian
 */
@Data
@TableName("li_blindbox_prize_record")
@ApiModel(value = "盲盒开奖记录")
public class BlindboxPrizeRecord extends BaseStandardEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 中将用户ID
     */
    @ApiModelProperty(name = "中将用户ID", notes = "")
    private String userId;
    /**
     * 中将用户用户名
     */
    @ApiModelProperty(name = "中将用户用户名", notes = "")
    private String userName;
    /**
     * 中将用户昵称
     */
    @ApiModelProperty(name = "中将用户昵称", notes = "")
    private String userNick;

    /**
     * 开奖时间
     */
    @ApiModelProperty(name = "开奖时间", notes = "")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date prizeTime;
    /**
     * 开奖图片
     */
    @ApiModelProperty(name = "开奖图片", notes = "")
    private String images;
    /**
     * 公开，未公开
     */
    @ApiModelProperty(name = "公开，未公开", notes = "")
    private Boolean type;
    /**
     * 商品id
     */
    @ApiModelProperty(name = "商品id", notes = "")
    private String goodsId;

    /**
     * 奖品名称
     */
    @ApiModelProperty(name = "奖品名称", notes = "")
    private String prizeName;

    /**
     * 奖品名称
     */
    @ApiModelProperty(name = "奖品图片", notes = "")
    private String prizeImage;

    /**
     * 中奖奖卷
     */
    @ApiModelProperty(name = "中奖奖卷", notes = "")
    private String paperCode;

    /**
     * 奖品名称
     */
    @ApiModelProperty(name = "奖品图片", notes = "")
    private String goodsName;
}